package com.bigplayer.comm.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "bigplayer",fallbackFactory = BigPlayerApiFallback.class)
public interface BigPlayerApi {

    @RequestMapping(path = "/bigplayer/double/getData", method = RequestMethod.POST)
    String getDouble(@RequestBody String doubleReq);

    @RequestMapping(path = "/bigplayer/double/getThreeData", method = RequestMethod.POST)
    String getThreeData(@RequestBody String threeReq);

}
